import React from 'react';
import { Button, Popconfirm } from 'antd';

export default function ConfirmDeleteButton({ confirmTitle, buttonText, onConfirm }) {
  return (
    <Popconfirm
      title={confirmTitle}
      okText="是"
      cancelText="否"
      onConfirm={onConfirm}
    >
      <Button
        type="danger"
        size="small"
      >
        {buttonText}
      </Button>
    </Popconfirm>
  );
}
